/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2023. All rights reserved.
 */

package common

//这些参数用于云上接口调用
//拉取云上账单和资源清单时的最小化参数
type BillAndResourceMixedParameter struct {
	CloudUserId       string
	BillCycle         string
	BillDateBegin     *string
	BillDateEnd       *string
	Offset            *int32
	Limit             *int32
	IncludeZeroRecord *bool
}

//拉取云上账单和资源清单时相同的参数（除开最小化参数）
type BillAndResourceCommonParameter struct {
	ServiceTypeCode *string
	RegionCode      *string
	ChargeMode      *string
	TradeId         *string
	BillType        *int32
}

// 定时任务拉取云上账单时的参数
// ReverseOffset为反向记录的offset
type PullBillParameter struct {
	UserId           string
	ResourceTypeCode *string
	BillStatus       *int32
	BillAndResourceMixedParameter
	BillAndResourceCommonParameter
}

//定时任务拉取资源消费记录时的参数
type PullResourceRecordParameter struct {
	UserId string
	BillAndResourceMixedParameter
	BillAndResourceCommonParameter
	CloudResourceId *string
}
